home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17751 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: info.ucla.edu!psgrain!solace!user
  2. From: lars.farm@nts.mh.se (Lars Farm)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Why don't you use garbage collection
  5. Date: Wed, 17 Apr 1996 13:11:29 +0200
  6. Organization: pv
  7. Message-ID: <AD9A9E819668CB68B@dialup100-3-15.swipnet.se>
  8. References: <AD94A731966836BF@dialup97-6-14.swipnet.se> <1996Apr16.110526.1846@ittpub>
  9. NNTP-Posting-Host: dialup100-3-15.swipnet.se
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=iso-8859-1
  12. Content-Transfer-Encoding: 8bit
  13.  
  14. In article <1996Apr16.110526.1846@ittpub>,
  15. wil@ittpub.nl (Wil Evers) wrote:
  16.  
  17. >OK, let's get serious about this:
  18. >
  19. >1. Don't we think C++ is complex enough as it is?
  20.  
  21. See the Detlefs/Ellis GC proposal. Seems a fairly small change in the
  22. language compared to what is done with templates and exceptions and rtti,
  23. and... A couple of keywords: gc/nogc to be used optionally with class
  24. declarations and optionally with operator new to select collected or non
  25. collected heap. Later gc/nogc overrides previous. There is a way to
  26. finalize, but the need for this is made much smaler. What is inside most
  27. copy/op=/dtors? Code to copy heap data and release data held by pointers.
  28. What would copy/op=/dtors look like when pointers can be shared and you
  29. don't have to say delete? Many of them would become redundant! The
  30. (current) compiler generated op= and copy would very often suffice. The
  31. minority of objects with non empty dtors would be deleted manually just
  32. like now. This makes things simpler, not harder. Anyway, this wont happen.
  33. GC seems not to appeal to the committee members. If it did GC would shurely
  34. be in the language by now.
  35.  
  36.  
  37.